/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cannes.dao;

import cannes.connexion.ConnexionBDD;
import cannes.dao.implement.*;
import java.sql.Connection;

/**
 *
 * @author p1000666
 */
public class DAOFactory {

    protected static final Connection connect = ConnexionBDD.getInstance();

    public static DAO getFilmDAO(){
        return new FilmDAO(connect);
    }

    public static DAO getInvitationDAO(){
        return new InvitationDAO(connect);
    }

    public static DAO getJureDAO(){
        return new JureDAO(connect);
    }

    public static DAO getJuryDAO(){
        return new JuryDAO(connect);
    }
    public static DAO getPersonneDAO(){
        return new PersonneDAO(connect);
    }
    
    public static DAO getProjectionDAO(){
        return new ProjectionDAO(connect);
    }
    
    public static DAO getPlanningDAO(){
        return new PlanningDAO(connect);
    }
    
    public static DAO getSalleDAO(){
        return new SalleDAO(connect);
    }

    public static DAO getVipDAO() {
        return new VipDAO(connect);
    }

    public static DAO getActionDAO() {
        return new ActionDAO(connect);
    }

    public static DAO getEchangeDAO() {
        return new EchangeDAO(connect);
    }
}
